package com.ciaojian.core.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.WorkerInviteMapper;
import com.ciaojian.core.model.WorkerInvite;

/**
 * @author Atlakyn
 */
public abstract class WorkerInviteService<M extends BaseMapper<T>, T> extends ServiceImpl<WorkerInviteMapper, WorkerInvite> {

    /**
     * 用户当前绑定的发型师
     *
     * @param userId 用户的 id
     * @return 发型师 id
     */
    public Integer getWorkerIdByUserId(Integer userId) {
        return baseMapper.getWorkerIdByUserId(userId);
    }

}
